fix mangled argument handling on none utf-8 unix machines.
authortsteven4 <tsteven4@gmail.com>
Sat, 4 Nov 2017 20:48:53 +0000 (14:48 -0600)
committertsteven4 <tsteven4@gmail.com>
Sat, 4 Nov 2017 20:48:53 +0000 (14:48 -0600)
main.cc

diff --git a/main.cc b/main.cc
index 222b9cf2042ede185ef966643014eb2027fda39a..3ab7ffb88eb217a03ee0a61914d2f7fdf3f7bd21 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -242,9 +242,8 @@ main(int argc, char* argv[])
   // For example, this will get the QTextCodec::codecForLocale set
   // correctly.
   QCoreApplication app(argc, argv);
-#ifdef __WIN32__
   // Use QCoreApplication::arguments() to process the command line and replace
-  // argv[] strings with UTF-8 versions; this is needed on Windows only.
+  // argv[] strings with UTF-8 versions.
   QVector<QByteArray> qargv;
   {
     QStringList qargs = QCoreApplication::arguments();
@@ -255,7 +254,6 @@ main(int argc, char* argv[])
       argv[i] = qargv[i].data();
     }
   }
-#endif
 
   (void) new gpsbabel::UsAsciiCodec(); /* make sure a US-ASCII codec is available */